package com.gopay.common.cps.dao.gsrt.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.gsrt.GsrtCustTenderSuretySubDao;
import com.gopay.common.domain.gsrt.GsrtCustTenderSuretySub;

@Repository("gsrtCustTenderSuretySubDao")
public class GsrtCustTenderSuretySubDaoImpl extends 
BaseDAOImpl<GsrtCustTenderSuretySub, Long> implements GsrtCustTenderSuretySubDao{

	@Override
	public  GsrtCustTenderSuretySub save(GsrtCustTenderSuretySub  master) {
		return super.save(master);
		
	}

	@Override
	public List<GsrtCustTenderSuretySub> getbyMasterId(long masterId) {
		String hql="from GsrtCustTenderSuretySub where  custTenderMasterId='"+masterId+"'";
		 List<GsrtCustTenderSuretySub> list= this.findByHql(hql);
		 return list;
	}
}
